package com.lj.mcore.service;

import com.lj.mcore.dao.base.BaseAppDAO;
import com.lj.mcore.entity.Store;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service
@Transactional
public class StoreService implements IStoreService{

    @Resource(name="storeDao")
    private BaseAppDAO<Store> storeDao;

    @Override
    public boolean save(Store obj) {
        return storeDao.save(obj);
    }

    @Override
    public boolean delete(Long paramLong) {
        return false;
    }

    @Override
    public boolean update(Store paramUser) {
        return false;
    }

    @Override
    public Store getObjById(Long paramLong) {
        return storeDao.findById(paramLong);
    }

    @Override
    public List<Store> query(String paramString, Map paramMap, int paramInt1, int paramInt2) {
        return storeDao.query(paramString, paramMap, paramInt1, paramInt2);
    }

}
